package cn.foolrabbit.springcloudsamples.client;

import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-hi",configuration = Service1Configuration.class)
public interface Service1Remote {

    @RequestMapping(method = RequestMethod.GET,value = "/hi",consumes = "application/json")
    public String hi(@RequestParam(value = "name") String name);
    //public String hi(@RequestParam(value = "name") String name,@RequestHeader("code") String code);
}
